	<?php $this->beginWidget('zii.widgets.CPortlet', array(
			'title'=>''.$model->media_name.'<div style="font-size:12px; margin-top:-20px;">时间：'. UtilTools::timeop($model->media_created).'  点击量：'. $model->media_hits.'次</div>',
			'htmlOptions'=>array(
				'class'=>'portlet'
			)
	));?>		
	
			<?php 
			
				$path = Yii::app()->params['uploadProductPath'];
				$img = $path.date('Y',$model->folder->file_created).'/'.date('m',$model->folder->file_created).'/'.date('d',$model->folder->file_created).'/'.$model->folder->file_links.'.'.$model->folder->file_ext;
				echo CHtml::image(File::model()->generateFilePath(File::model()->findByPk($model->media_pic_id),0), $model->media_name,array('style'=>'width:220px'));
			?>
			<br />
			<h3>作品介绍：</h3>
			<p><?php echo $model->media_describe;?></p>
			<br />
			
			
			<?php if (!Yii::app()->user->isGuest):?>
			最近访客：<br />
				<?php //foreach ($visitors as $vdata):?>
				<?php //UtilTools::dump($vdata->attributes);?>
				<?php //echo Visitors::model()->getVisitorHead(long2ip($vdata->visitors_ip),array('style'=>'width:50px;'), '最后访问时间:'.date('Y-m-d h:i:s', $vdata->visitors_lasttime));?>
				<?php //endforeach;?>
			<?php endif;?>
		</div>
						
	<?php $this->endWidget();?>